package com.sy.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Commit {
    private Integer id;
    private String userName;
    private String comment;
    @JSONField(format = "yyyy-MM-dd")
    private Date commitTime;
    private Integer drId;
    private Integer service;
    private Integer teaching;
    private Integer field;
    private Integer charge;

    public Commit() {
    }

    public Commit(Integer id, String userName, String comment, Date commitTime, Integer drId, Integer service, Integer teaching, Integer field, Integer charge) {
        this.id = id;
        this.userName = userName;
        this.comment = comment;
        this.commitTime = commitTime;
        this.drId = drId;
        this.service = service;
        this.teaching = teaching;
        this.field = field;
        this.charge = charge;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(Date commitTime) {
        this.commitTime = commitTime;
    }

    public Integer getDrId() {
        return drId;
    }

    public void setDrId(Integer drId) {
        this.drId = drId;
    }

    public Integer getService() {
        return service;
    }

    public void setService(Integer service) {
        this.service = service;
    }

    public Integer getTeaching() {
        return teaching;
    }

    public void setTeaching(Integer teaching) {
        this.teaching = teaching;
    }

    public Integer getField() {
        return field;
    }

    public void setField(Integer field) {
        this.field = field;
    }

    public Integer getCharge() {
        return charge;
    }

    public void setCharge(Integer charge) {
        this.charge = charge;
    }

    @Override
    public String toString() {
        return "Commit{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", comment='" + comment + '\'' +
                ", commitTime=" + commitTime +
                ", drId=" + drId +
                ", service=" + service +
                ", teaching=" + teaching +
                ", field=" + field +
                ", charge=" + charge +
                '}';
    }
}
